﻿using UnityEngine;

namespace DiIoc.Signal.ObserverPattern
{
    public class LogObserver : Observer
    {
        public LogObserver(Subject subject)
        {
            this.subject = subject;
            subject.AttachObserver(this);
        }
        public override void Update()
        {
            
            Debug.Log($"LogObserver received a message: {subject.State}, the message has been logged");
        }
    }
}
